﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo518_2
{
    class Teacher : Person
    {

        //专业（Major）、年级（Grade）
         public string Title { get; set; }
         public string Wageno { get; set; }

        public Teacher(string id, string name, char sex, string cardid, string tel,string  title,string wageno) : base(id, name, sex, cardid, tel)
        {
            Title = title;
            Wageno = wageno;
        }

        public void Show() {
            base.Show();
            Console.WriteLine("职称{0},工资号{1},", Title, Wageno);
        }
    }
}
